package org.jeecg.modules.scm.api;

import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.scm.api.fallback.ScmCommonCloudApiFallbackFactory;
import org.jeecg.modules.scm.dto.EditInvItemRsDto;
import org.jeecg.modules.scm.entity.ScmFinaContract;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 业务模块cloudAPI
 */
@Component
@FeignClient(value = "jeecg-scm", fallbackFactory = ScmCommonCloudApiFallbackFactory.class)
public interface ScmCommonCloudApi {

    /**
     * 接收资金端报文并修改资金方项目关联关系
     *
     * @param editInvItemRsDto
     * @return
     */
    @PostMapping("/scm/invItemRs/updateByInvMsg")
    Result<Boolean> updateByInvMsg(@RequestBody EditInvItemRsDto editInvItemRsDto);

    /**
     * @throws
     * @title
     * @description
     * @author Zhou Ruiji
     * @updateTime 2021/12/13 23:52
     */
    @PutMapping(value = "/fina_contract/scmFinaContract/edit")
    Result<?> finaContractEdit(@RequestBody ScmFinaContract scmFinaContract);
}
